package com.example.testi18n.entity;

import com.example.testi18n.config.BigDecimalSerialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * @author xiaobendan
 * @version v1.0.0
 * @className User
 * @package com.example.testi18n.entity
 * @description
 * @date 2022-10-14 15:54
 */
@Data
public class User {

    @NotBlank(message = "姓名不能为空!")
    private String name;

    private Object userId;

    @JsonSerialize(using = BigDecimalSerialize.class)
    private BigDecimal money;
}
